//
//  FourthViewController.m
//  chollos2
//
//  Created by Juan Soler Company on 11/04/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "FourthViewController.h"

@interface FourthViewController ()

@end

@implementation FourthViewController
@synthesize Radi;
@synthesize Destacados;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        self.title = NSLocalizedString(@"Config", @"Config");
        self.tabBarItem.image = [UIImage imageNamed:@"19-gear"];
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
    
}

- (void)viewDidUnload
{
    [self setRadi:nil];
    [self setDestacados:nil];
    [self setDestacados:nil];
    [self setDestacados:nil];
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

- (IBAction)radiChanged:(UISlider *)sender {
    
    Radi.text = [NSString stringWithFormat: @"%.0f", sender.value];
}
- (IBAction)recepcionChanged:(UISwitch *)sender {
    
    //Codi per quan desactivem sa recepció!
    
}

- (IBAction)estilMapaChanged:(UISegmentedControl *)sender {
    //Canviar display del mapa
}

- (IBAction)numDestacadosChanged:(UISlider *)sender {

    Destacados.text = [NSString stringWithFormat: @"%.0f",sender.value];

}

@end
